
import request from '@/utils/request'

export function getPage(pageParam) {
  return request({
    url: '/gscloud_platform/platform/barCounterShop/page',
    method: 'get',
    params: pageParam
  })
}

export function addsave(data) {
  return request({
    url: '/gscloud_platform/platform/barCounterShop/save',
    method: 'post',
    data
  })
}

export function get(data) {
  return request({
    url: `/gscloud_platform/platform/barCounterShop/getById?barCounterShopId=${data}`,
    method: 'get',
  })
}

export function update(data) {
  return request({
    url: '/gscloud_platform/platform/barCounterShop/update',
    method: 'put',
    data
  })
}

// 查询人员吧台编码id
export function barStaffId(pageParam) {
  return request({
    url: `/gscloud_platform/platform/barStaff/pageAll`,
    method: 'get',
    params: pageParam
  })
}

// 查询供应商店铺id
export function shopSupplierId(pageParam) {
  return request({
    url: `/gscloud_platform/platform/shopSupplier/page`,
    method: 'get',
    params: pageParam
  })
}

// 查询库存id
export function listByShopId(pageParam) {
  return request({
    url: `/gscloud_platform/platform/barCounterInventory/listByShopId`,
    method: 'get',
    params: pageParam
  })
}

// 根据参数查询吧台采购列表和分页数据
export function barPurchaseId(pageParam) {
  return request({
    url: `/gscloud_platform/platform/barPurchase/page`,
    method: 'get',
    params: pageParam
  })
}

// 根据参数查询吧台采购列表和分页数据
export function pageByDate(pageParam) {
  return request({
    url: `/gscloud_platform/platform/barPurchase/pageByDate`,
    method: 'get',
    params: pageParam
  })
}